import request from '@/utils/request'
var PATH = "/shopringcart"
export default {
    /**
     *  保存
     * @param {保存的购物车对象}} shopcart 
     * @returns 
     */
    save(shopcart){
        return request({
            url: `${PATH}/save`,
            method: "post",
            data:shopcart
        })
    },

    /**
     *    分页查询
     * @param {当前页数} page 
     * @param {分页的大小} size 
     * @returns 
     */
    getList(page,size){
         return request({
              url:`${PATH}/list?page=${page}&size=${size}`,
              method:"get",
         })
    }
        
}